/*
 *
 *    Copyright (c) 2022 Project CHIP Authors
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

// THIS FILE IS GENERATED BY ZAP
// This file is generated from clusters-Events.h.zapt

#pragma once

#include <app/EventLoggingTypes.h>
#include <app/data-model/DecodableList.h>
#include <app/data-model/List.h>
#include <app/data-model/Nullable.h>
#include <lib/core/DataModelTypes.h>
#include <lib/core/TLV.h>
#include <lib/support/BitMask.h>

#include <clusters/shared/Enums.h>
#include <clusters/shared/Structs.h>

#include <clusters/SmokeCoAlarm/ClusterId.h>
#include <clusters/SmokeCoAlarm/Enums.h>
#include <clusters/SmokeCoAlarm/EventIds.h>
#include <clusters/SmokeCoAlarm/Structs.h>

#include <cstdint>

namespace chip
{
namespace app
{
	namespace Clusters
	{
		namespace SmokeCoAlarm
		{
			namespace Events
			{
				namespace SmokeAlarm
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {
						kAlarmSeverityLevel = 0,
					};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::SmokeAlarm::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::SmokeAlarm::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace SmokeAlarm
				namespace COAlarm
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {
						kAlarmSeverityLevel = 0,
					};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::COAlarm::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::COAlarm::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace COAlarm
				namespace LowBattery
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {
						kAlarmSeverityLevel = 0,
					};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::LowBattery::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::LowBattery::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace LowBattery
				namespace HardwareFault
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::HardwareFault::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::HardwareFault::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace HardwareFault
				namespace EndOfService
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::EndOfService::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::EndOfService::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace EndOfService
				namespace SelfTestComplete
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SelfTestComplete::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SelfTestComplete::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace SelfTestComplete
				namespace AlarmMuted
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::AlarmMuted::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::AlarmMuted::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace AlarmMuted
				namespace MuteEnded
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::MuteEnded::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::MuteEnded::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace MuteEnded
				namespace InterconnectSmokeAlarm
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {
						kAlarmSeverityLevel = 0,
					};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::InterconnectSmokeAlarm::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::InterconnectSmokeAlarm::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace InterconnectSmokeAlarm
				namespace InterconnectCOAlarm
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {
						kAlarmSeverityLevel = 0,
					};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::InterconnectCOAlarm::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::InterconnectCOAlarm::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						AlarmStateEnum alarmSeverityLevel = static_cast<AlarmStateEnum>(0);

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace InterconnectCOAlarm
				namespace AllClear
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::AllClear::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::AllClear::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::SmokeCoAlarm::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace AllClear
			} // namespace Events
		} // namespace SmokeCoAlarm
	} // namespace Clusters
} // namespace app
} // namespace chip
